﻿@model WorkTimePrj.Models.Project

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>编辑项目</title>
     <link href="@Url.Content("~/Content/themes/base/jquery.ui.all.css")" rel="stylesheet" type="text/css" />
	<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .field-validation-error{float:none;}
        .body ul.cur li{height:30px; line-height:30px;}
        .editor-label{width:90px;float:left;}
        .editor-field{float:left;}
        .Button01{font-family: Verdana, Arial, Helvetica, sans-serif;font-size: 12px; color: #003677; height: 20px; border: solid 1px #5381B3; padding-left:4px;padding-right:4px;background:#ffffff  ;}
        .Btn01{border:solid 1px #5381B3;color:#5381B3;}
    </style>
     <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
      <script type="text/javascript">
         $(function () {
               if (@ViewBag.refresh==1)
            {
                 window.opener.location.reload();
                window.close();
            }
          });
    </script>
</head>
<body>
   
    
    @using (Html.BeginForm()) {
        @Html.ValidationSummary(true)
            @Html.HiddenFor(model => model.pid)
            <div class="body">
    			<ul  class="cur">
                <li>
            <div class="editor-label">
                @Html.LabelFor(model => model.code)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.code)
                @Html.ValidationMessageFor(model => model.code)
            </div>
            </li>
            <li>
            <div class="editor-label">
                @Html.LabelFor(model => model.display)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.display)
                @Html.ValidationMessageFor(model => model.display)
            </div>
            </li>
            <li>
            <div class="editor-label">
                @Html.LabelFor(model => model.createtime)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.createtime)
                @Html.ValidationMessageFor(model => model.createtime)
            </div>
            </li>
            <li>
            <div class="editor-label">
                @Html.LabelFor(model => model.updatetime)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.updatetime)
                @Html.ValidationMessageFor(model => model.updatetime)
            </div>
            </li>
            <li>
            <div class="editor-label">
                @Html.LabelFor(model => model.status)
            </div>
            <div class="editor-field">
                @Html.DropDownListFor(model => model.status, new SelectList(new String[]{"售前","在建","售后","已关闭"}))
                @Html.ValidationMessageFor(model => model.status)
            </div>
            </li>
            <li>
            <div class="editor-label">
                @Html.LabelFor(model => model.creator)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.creator)
                @Html.ValidationMessageFor(model => model.creator)
            </div>
            </li>
            <li>
            <div class="editor-label">
                @Html.LabelFor(model => model.PM)
            </div>
            <div class="editor-field">
                @Html.DropDownListFor(model => model.PM, Model.pmList,"---")
                <!--@Html.ValidationMessageFor(model => model.PM)-->
            </div>
            </li>
            <li>
            <div class="editor-label">
                @Html.LabelFor(model => model.SE)
            </div>
            <div class="editor-field">
                @Html.DropDownListFor(model => model.SE, Model.seList,"---")
                <!--@Html.ValidationMessageFor(model => model.SE)-->
            </div>
            </li>
             <li>
            <div class="editor-label">
                @Html.LabelFor(model => model.presales_account)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.presales_account) 人天
                <!--@Html.ValidationMessageFor(model => model.presales_account)-->
            </div>
            </li>
              <li>
            <div class="editor-label">
                @Html.LabelFor(model => model.pm_account)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.pm_account) 人天
                <!--@Html.ValidationMessageFor(model => model.pm_account)-->
            </div>
            </li>
            <li>
            <div class="editor-label">
                @Html.LabelFor(model => model.ts_account)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.ts_account) 人天
                <!--@Html.ValidationMessageFor(model => model.ts_account)-->
            </div>
            </li>
            <li>
            <div class="editor-label">
                @Html.LabelFor(model => model.art_account)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.art_account) 人天
                <!--@Html.ValidationMessageFor(model => model.art_account)-->
            </div>
            </li>
            <li>
            <div class="editor-label">
                @Html.LabelFor(model => model.dev_account)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.dev_account) 人天
                <!--@Html.ValidationMessageFor(model => model.dev_account)-->
            </div>
            </li>
            <li>
            <div class="editor-label">
                @Html.LabelFor(model => model.tester_account)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.tester_account) 人天
                <!--@Html.ValidationMessageFor(model => model.tester_account)-->
            </div>
            </li>
            </ul>
            </div>
            <p style=" padding-left:195px;">
                <input type="submit" value="保存" class="Btn01"/>
            </p>   
        @Html.CommonnScript()
    }
</body>
</html>
